home *** CD-ROM | disk | FTP | other *** search
- PXFUTIME(3F) Last changed: 1-6-98
-
-
- NNAAMMEE
- PPXXFFUUTTIIMMEE - Sets access and modification times of a file
-
- SSYYNNOOPPSSIISS
- CCHHAARRAACCTTEERR**_n _p_a_t_h
- IINNTTEEGGEERR _i_l_e_n,, _j_u_t_i_m_b_u_f,, _i_e_r_r_o_r
- CCAALLLL PPXXFFUUTTIIMMEE((_p_a_t_h,, _i_l_e_n,, _j_u_t_i_m_b_u_f,, _i_e_r_r_o_r))
-
- IIMMPPLLEEMMEENNTTAATTIIOONN
- UNICOS, UNICOS/mk, and IRIX systems
-
- SSTTAANNDDAARRDDSS
- IEEE standard interface for FORTRAN 77
-
- DDEESSCCRRIIPPTTIIOONN
- On IRIX systems, this routine is in lliibbffoorrttrraann..ssoo which is linked by
- default when compiling programs with the MIPSpro 7 Fortran 90 compiler
- or when compiling programs with the --ccrraayylliibbss option to the MIPSpro
- 7.2 F77 compiler.
-
- The routine PPXXFFUUTTIIMMEE provides the functionality of the uuttiimmee(2) system
- call.
-
- When using the CF90 compiler or MIPSpro 7 Fortran 90 compiler on
- UNICOS, UNICOS/mk, or IRIX systems, all arguments must be of default
- kind unless documented otherwise. On UNICOS and UNICOS/mk, default
- kind is KKIINNDD==88 for integer, real, complex, and logical arguments; on
- IRIX, the default kind is KKIINNDD==44.
-
- The following is a list of valid arguments for this routine:
-
- _p_a_t_h An input character variable or array element containing
- the name of the file.
-
- _i_l_e_n An input integer variable containing the length of _p_a_t_h in
- characters. If _i_l_e_n is zero, all trailing blanks are
- removed before calling uuttiimmee.
-
- _j_u_t_i_m_b_u_f An input integer variable. It is a handle for a structure
- of type uuttiimmbbuuff. The handle must be created by a call to
- the PPXXFFSSTTRRUUCCTTCCRREEAATTEE(3F) routine prior to the call to
- PPXXFFUUTTIIMMEE. The names of the components of the uuttiimmbbuuff
- structure are _a_c_t_i_m_e and _m_o_d_t_i_m_e. These components can be
- accessed through the PPXXFFIINNTTSSEETT subroutine. The
- functionality obtained in uuttiimmee by passing a NULL can be
- obtained in PPXXFFUUTTIIMMEE by passing a handle argument with a
- value of zero.
-
- _i_e_r_r_o_r An output integer variable that contains zero if the call
- to uuttiimmee was successful or nonzero if the call to uuttiimmee
- was not completed.
-
- In addition to the errors returned by the uuttiimmee(2) system call,
- PPXXFFUUTTIIMMEE may return the following errors:
-
- EEIINNVVAALL If _i_l_e_n is less than 0 or _i_l_e_n is greater than LLEENN((_p_a_t_h)).
-
- EENNOOMMEEMM If PPXXFFUUTTIIMMEE is unable to obtain memory to copy _p_a_t_h.
-
- EEBBAADDHHAANNDDLLEE If _j_u_t_i_m_b_u_f is an invalid handle or has an incorrect
- handle type (UNICOS and UNICOS/mk systems only).
-
- EEXXAAMMPPLLEESS
- program test
-
- character*12 filea, fileb
- integer ilenfila, ilenfilb, jutimbuf, ierr
-
- ! create file
- open(file='existfile', unit=9, status='NEW')
- write(9,*) 'HI', 1.2, 11, 'GOODBYE'
- endfile 9
- close 9
-
- filea = 'existfile'
- ilenfila = 0
- ilenfilb = 0
-
- ! Set file access and modification time to current time
- call pxfutime(filea,ilenfila,0,ierr)
- if (ierr.ne.0) then
- print *,'FAIL: pxfutime'
- print *,'nonzero status on existing file = ',ierr
- else
- print *,'PASS: pxfutime'
- print *,'zero status on existing file'
- endif
-
- end
-
- The output of this test on a UNICOS system is:
-
- PASS: pxfutime
- zero status on existing file
-
- SSEEEE AALLSSOO
- _A_p_p_l_i_c_a_t_i_o_n _P_r_o_g_r_a_m_m_e_r'_s _L_i_b_r_a_r_y _R_e_f_e_r_e_n_c_e _M_a_n_u_a_l, publication SR-
- 2165, for the printed version of this man page.
-
-